export interface WishlistItem {
  wishlistId: number
  productId: number
  productName: string
  productImage: string
  brandName: string
  price: number
  createTime: Date
  userId: number
}

export interface WishlistQuery {
  page?: number
  size?: number
  userId: number
}

export interface WishlistResponse {
  list: WishlistItem[]
  total: number
  page: number
  size: number
}

export interface AddToWishlistRequest {
  productId: number
  userId: number
}

export interface RemoveFromWishlistRequest {
  wishlistId: number
  userId: number
}

// 新增：与后端API对应的类型定义
import type { Shoes } from './product'

export interface Collection {
  collectionId: number
  userId: number
  shoesId: number
  createAt: string
}

export interface WishlistItemWithShoes extends Shoes {
  createAt?: string
}

export interface WishlistPageResponse {
  code: number
  msg: string
  data: {
    pageNum: number
    pageSize: number
    size: number
    total: number
    pages: number
    list: WishlistItemWithShoes[]
  }
}

export interface WishlistCheckResponse {
  code: number
  msg: string
  data: boolean
}

export interface WishlistCountResponse {
  code: number
  msg: string
  data: number
}

export interface WishlistAddRequest {
  userId: number
  shoeId: number
}

export interface WishlistDeleteRequest {
  userId: number
  shoeId: number
}
